package com.edisoncgh.pojo;

import java.util.Date;

public class Article {
    private Integer id;

    private Date publish_date;

    private String author;

    private String title;

    private Integer visited_times;

    private Integer art_category;

    private String content;

    private String tag_name;

    private String category_name;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getPublish_date() {
        return publish_date;
    }

    public void setPublish_date(Date publish_date) {
        this.publish_date = publish_date;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author == null ? null : author.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public Integer getVisited_times() {
        return visited_times;
    }

    public void setVisited_times(Integer visited_times) {
        this.visited_times = visited_times;
    }

    public Integer getArt_category() {
        return art_category;
    }

    public void setArt_category(Integer art_category) {
        this.art_category = art_category;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public String getTag_name() {
        return tag_name;
    }

    public void setTag_name(String tag_name) {
        this.tag_name = tag_name;
    }

    public String getCategory_name() {
        return category_name;
    }

    public void setCategory_name(String category_name) {
        this.category_name = category_name;
    }

    @Override
    public String toString() {
        return "Article{" +
                "id=" + id +
                ", publish_date=" + publish_date +
                ", author='" + author + '\'' +
                ", title='" + title + '\'' +
                ", visited_times=" + visited_times +
                ", art_category=" + art_category +
                ", content='" + content + '\'' +
                '}';
    }
}